<extend name="Public/base" />
<block name="content">
<if condition="(int)I('get.is_call') lt 1">
<style>
.select2-container{float:left}
/* #s2id_sort{
	display:none;width:150px; 
} */
</style>
</if>
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i class="icon-home"></i> 首页</a>
			<a href="{:U('ServiceSeat/myRecommend')}">坐席管理</a>
			<a class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br>
		<div class="search-form cf">
			<div class="sleft">
				<span class="control-group">
					<select class="form-control" style="width: 150px;" name="activity_id" id="activity_id">
						<option value=0>选择报名活动</option>
						<volist name="activity" id="val">
							<option value='{$val.activity_id}' <if condition="$val['activity_id']==(int)I('get.activity_id')">selected</if>>{$val.activity_name|htmlspecialchars}</option>
						</volist>
					</select>
					<select class="form-control" style="width: 150px;" name="ticket_level" id="ticket_level" >
						<option value="-1">选择票别</option>
						<option value="0" <if condition="(int)I('get.ticket_level','-1')==0">selected</if>>普通票</option>
						<option value="1" <if condition="(int)I('get.ticket_level','-1')==1">selected</if>>VIP票</option>
					</select>
					<select class="form-control" style="width: 150px;" name="sign_channel" id="sign_channel" >
						<option value="-1">选择报名方式</option>
						<option value="0" <if condition="(int)I('get.sign_channel','-1')==0">selected</if>>主动报名</option>
						<option value="1" <if condition="(int)I('get.sign_channel','-1')==1">selected</if>>票点报名</option>
						<option value="2" <if condition="(int)I('get.sign_channel','-1')==2">selected</if>>代报名</option>
						<option value="3" <if condition="(int)I('get.sign_channel','-1')==3">selected</if>>活动现场报名</option>
						<option value="4" <if condition="(int)I('get.sign_channel','-1')==4">selected</if>>推广报名</option>
					</select>
					<select class="form-control" style="width: 150px;" name="is_call" id="is_call" >
						<option value="0" <if condition="(int)I('get.is_call','-1')==0">selected</if>>未拨打</option>
						<option value="1" <if condition="(int)I('get.is_call','-1')==1">selected</if>>稍后拨打</option>
						<option value="2" <if condition="(int)I('get.is_call','-1')==2">selected</if>>已拨打</option>
					</select>
					<select class="form-control" style="width: 150px;" name="sort" id="sort">
						<option value="0">通话时间排序</option>
						<option value="0" <if condition="(int)I('get.sort')==0">selected</if>>升序</option>
						<option value="1" <if condition="(int)I('get.sort')==1">selected</if>>降序</option>
					</select>
				</span>
				<button class="btn btn-info" id="search_button" url="{:U('ServiceSeat/ticketConfirmation')}"><i class="icon-search icon-white"></i></button>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content ">
						<form id="export-form" method="post" action="">
							<if condition="(int)I('get.activity_id')==0">
							Oh!必须要选择活动！
							<else/>
							<table id="config_table" class="table table-striped with-check">
								<thead>
									<tr>
				                        <th width="5%" class="taskStatus">序号</th>
				                        <th width="15%" class="taskStatus">姓名</th>
				                        <th width="15%" class="taskStatus">报名方式</th>
				                        <if condition="(int)I('get.is_call')==1">
				                        	<th width="15%" class="taskStatus">稍后拨打时间</th>
				                        </if>
				                        <if condition="(int)I('get.is_call')==2">
				                        	<th width="15%" class="taskStatus">上次通话时间</th>
				                        </if>
				                        <th width="15%" class="taskStatus">操作</th>
				                        <if condition="(int)I('get.is_call')==0">
				                        	<th width="50%" class="taskStatus"></th>
				                        <else/>
				                        	<th width="35%" class="taskStatus"></th>
				                        </if>
									</tr>
								</thead>
								<tbody>
									<notempty name="_list">
						                <volist name="_list" id="val">
						                    <tr>
						                        <td class="taskStatus">{$i}</td>
						                        <td class="taskStatus">{$val.customer_id|getServiceCustomerName}</td>
						                        <td class="taskStatus">{$val.sign_channel_text}</td>
							                        <if condition="(int)I('get.is_call')==1">
							                        	<td class="taskStatus"><if condition="$val['later_call_time']">{$val.later_call_time|date='Y-m-d H:i:s',###}</if> </td>
							                        </if>
							                        <if condition="(int)I('get.is_call')==2">
							                        	<td class="taskStatus"><if condition="$val['last_call_time']">{$val.last_call_time|date='Y-m-d H:i:s',###}</if> </td>
							                        </if>
						                        <td class="taskStatus">
						                            <a title="查看" href="{:U('ticketConfirmationDial',array('origin'=>'4','id'=>$val['customer_id']))}"><i class="icon-eye-open"></i> 查看</a>　
						                        </td>
						                        <td class="taskStatus"></td>
						                    </tr>
						                </volist>
									<else/>
										<tr>
											<td colspan="10" class="taskStatus"> Oh! 暂时还没有内容! </td>
										</tr>
									</notempty>
								</tbody>
							</table>
							<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
								{$_page}
							</div>
							</if>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
/* $(function(){
	$("#is_call").change(function(){
		if($(this).val() == 0){
			$("#s2id_sort").hide();
		}else{
			$("#s2id_sort").show();
		}
	});
}); */
highlight_subnav("{:U('ServiceSeat/ticketConfirmation')}");
</script>
</block>
